package com.cloudlinkscm.base.authcenter;

import com.cloudlinkscm.AuthCenterApplication;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.test.context.junit4.SpringRunner;

/**
 * Created by sin on 2017/8/4.
 */
@RunWith(SpringRunner.class)
@SpringBootTest(classes = AuthCenterApplication.class)
public class redis {

	@Autowired
	private RedisTemplate redisTemplate;

	@Test
	public void redisSetTest() {
		redisTemplate.opsForValue().set("a", "123");
		System.out.println(redisTemplate.opsForValue().get("a"));
	}
}
